﻿ using JTTD.Common.Enum;
using System;
 using System.ComponentModel.DataAnnotations.Schema;

namespace JTTD.DataBase.Model.Integral
{
    /// <summary>
    /// 账单核算积分申请
    /// </summary>
    [Table("t_integral_apply")]
   public  class IntegralApplyModel:BaseModel
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Column("userId")]
        public int UserId { get; set; }
        /// <summary>
        /// 账单金额
        /// </summary>

        [Column("amount")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        [Column("fileUrl")]
        public string FileUrl { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        [Column("createTime")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 申请状态
        /// </summary>
        [Column("applyState")]
        public ApplyStateEnum ApplyState { get; set; } = ApplyStateEnum.Examineing;

        /// <summary>
        /// 拒绝原因
        /// </summary>
        [Column("reason")]
        public string Reason { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Column("phone")]
        public string Phone { get; set; }
    }
}
